package sonia.examples.rlm;

import javax.swing.JButton;
import javax.swing.JFrame;

import rlm.RuleLayoutManager;
import alm.ALMException;

public class RLMTest extends JFrame{
	
	public RLMTest(String title, String filename) throws ALMException{
		super(title);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		setLayout(new RuleLayoutManager(filename));
		setSize(500,300);
		
		for(int i = 0; i < 4; i++){
			JButton button = new JButton("button"+(i+1));
			this.add(button);
		}
	}
	
}
